package com.zhongkai.encrypt3DES;

public class Encrypt3DEStest {

	/**
	 * 
	 * @author lengxue
	 * @date 13 Jul 2012 09:04:34
	 * @param args
	 * @note
	 */
	public static void main( String[] args ) throws Exception {
		Encrypt3DES encrypt3DES = new Encrypt3DES( );
		String message = "121";
		byte [] encontent = encrypt3DES.Encrypt( message.getBytes("UTF-8") );
		String strings = encontent.toString();
		byte [] decontent = encrypt3DES.Decrypt( encontent);
		System.out.println("明文是:" + encontent.toString());
		System.out.println("加密后:" + new String( encontent ,"UTF-8"));
		System.out.println("解密后：" + new String( decontent ));
	}

}
